<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>录结构与main.js配置文件说明</title>
    <!--<script data-main="./resource/main" src="./resource/require.js"></script>-->
    <script src="./resource/require.js"></script>
    <script src="./resource/main.js"></script>
</head>
<body>
<i class="fa fa-address-book-o fa-5x" aria-hidden="true"></i>
<button onclick="test()">测试一下</button>
<script>
/*
    function test(){
        require(['jquery','angular'],function ($,angular) {
           $('body').css('backgroundColor','red');
        });
    }
*/
/*
这种方案不推荐，不能解决依赖
require(['js/jquery.min','lib/angular.min'],function () {
    $('body').css('backgroundColor','red');
});
*/

/*
require(['jquery','angular'],function ($,angular) {
    $('body').css('backgroundColor','red');
});
*/

/*
require(['util'],function (util) {
    util.change();
});
*/

/*require(['bootstrap'],function (util) {

});*/

/*
require(['autoutil'],function (uu) {

});
*/

require(['wu'],function (f) {
    f.error();
    f.success();
});



</script>
</body>
</html>